const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  lintOnSave: false,
  devServer: {
    proxy: {
      [process.env.VUE_APP_API]: {
        target: 'http://10.111.210.111:8000',  // 测试环境
        changeOrigin: true,
        logLevel: 'debug',
        pathRewrite: {
          '^/api': '' // 路径重写
        }
      }
    }
  }
})
